<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
  <th:block th:include="include :: header('新增维修询价')"/>
  <th:block th:include="include :: datetimepicker-css"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
  <form class="form-horizontal m" id="form-repairFeeInquiry-add">
    <div class="form-group">
      <label class="col-sm-3 control-label is-required">维修编号：</label>
      <div class="col-sm-8">
        <input name="repairId" class="form-control" type="text" required>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">询价事项描述名称：</label>
      <div class="col-sm-8">
        <input name="title" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">询价总计费用：</label>
      <div class="col-sm-8">
        <input name="totalFee" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">人工工时：</label>
      <div class="col-sm-8">
        <input name="repairHours" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">维修人工时价：</label>
      <div class="col-sm-8">
        <input name="hourPrice" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">折扣：</label>
      <div class="col-sm-8">
        <input name="discount" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">人工费用小计：</label>
      <div class="col-sm-8">
        <input name="repairHoursTotalFee" class="form-control" type="text">
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label">零部件费用：</label>
      <div class="col-sm-8">
        <input name="verhiclePartsFeeJson" class="form-control"></input>
      </div>
    </div>
  </form>
</div>
<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<script type="text/javascript">
  var prefix = ctx + "repair/repairFeeInquiry"
  $("#form-repairFeeInquiry-add").validate({
    focusCleanup: true
  });

  function submitHandler() {
    if ($.validate.form()) {
      $.operate.save(prefix + "/add", $('#form-repairFeeInquiry-add').serialize());
    }
  }

  $("input[name='startTime']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });

  $("input[name='endTime']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });

  $("input[name='applyTime']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });

  $("input[name='realityStartTime']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });

  $("input[name='realityEndTime']").datetimepicker({
    format: "yyyy-mm-dd",
    minView: "month",
    autoclose: true
  });
</script>
</body>
</html>
